package com.wiki.gds.member.provider.modular.member.api.impl;

import com.wiki.gds.member.facade.member.api.MemberApi;
import com.wiki.gds.member.facade.member.model.Member;
import com.wiki.gds.member.provider.modular.member.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableOAuth2Client;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(MemberApi.mapping)
public class MemberApiImpl implements MemberApi{

    @Autowired
    private MemberService memberService;

    @Override
    public Member getMemberBySelf(@RequestBody Member member) {
        return memberService.getBySelf(member);
    }

    @Override
    public String Test() {
        return "asdasd!!!!!!!!";
    }
}
